1 #ifndef BOOKDATABASE_H
2 #define BOOKDATABASE_H
3
4 #include
"Book.h"
5 #include <iostream>

6
7 class
BookDatabase
8 {

9 public
:
10     BookDatabase();
11     
void addBook(const Book& newBook);
12     
void printall() const;
13     
void editBookAt(int index);
14     Book getBook(
int index) const;
15     
void printBookTitle() const;
16     
void saveToFile(ofstream& out);
17     ~BookDatabase();

18 private
:
19     
void make_bigger();
20     Book* bookPtr;
21     
int capacity, used;
22 };
23 #endif
// !BOOKDATABASE_H


Gõ tìm kiếm nhanh...